import request from '@/utils/request'
/**
 * 获取系统消息列表
 * @param params 
 * @returns 
 */
export function getSystemListAPI(params: Object) {
    return request({
        url: '/user/inform/list',
        params
    })
}

/**
 * 获取系统消息详情
 * @param params 
 * @returns 
 */
export function getSystemDetailsAPI(params: Object) {
    return request({
        url: '/user/inform/lookover',
        params
    })
}

/**
 * 获取对话消息列表
 * @returns 
 */
export function chatMessageListAPI() {
    return request({
        url: '/it_chat/my/message/list',
    })
}

/**
 * 获取对话消息聊天内容
 * @returns 
 */
export function chatMessageContentAPI(params: any) {
    return request({
        url: '/it_chat/message/list',
        params
    })
}

/**
 * 消息常用语
 * @returns 
 */
export function getMessageWordsAPI() {
    return request({
        url: '/it_chat/message/works/list',
    })
}
/**
 * 添加消息常用语
 * @param data 
 * @returns 
 */
export function chatMessageWordsAddAPI(data:any) {
    return request({
        url: '/it_chat/message/works/add',
        method: 'post',
        data
    })
}
/**
 * 修改消息常用语
 * @param data 
 * @returns 
 */
export function chatMessageWordsEditAPI(data:any) {
    return request({
        url: '/it_chat/message/works/edit',
        method: 'post',
        data
    })
}
/**
 * 删除消息常用语
 * @param data 
 * @returns 
 */
export function chatMessageWordsDeleteAPI(data:any) {
    return request({
        url: '/it_chat/message/works/delete',
        method: 'post',
        data
    })
}
/**
 * 对话消息发送
 * @param data 
 * @returns 
 */
export function chatMessageContentAddAPI(data:any) {
    return request({
        url: '/it_chat/add_message',
        method: 'post',
        data
    })
}